package com.hyzx.qbasic.generator.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by 黄江华 on 2019/1/30.
 */

@Component
@PropertySource(value="classpath:generator.properties",encoding = "UTF-8")
public class AppConfig {
    @Value("${db.driver}")
    private String driver;

    @Value("${db.url}")
    private String dbUrl;

    @Value("${db.username}")
    private String dbUsername;

    @Value("${db.password}")
    private String dbPassword;

    @Value("${generator.config.package.base-package}")
    private String basePackage;

    @Value("${generator.config.package.controller-package}")
    private String controllerPackage;

    @Value("${generator.config.package.entity-package}")
    private String entityPackage;

    @Value("${generator.config.package.service-package}")
    private String servicePackage;

    @Value("${generator.config.package.service-impl-package}")
    private String serviceImplPackage;

    @Value("${generator.config.package.mapper-package}")
    private String mapperPackage;

    @Value("${generator.config.package.repository-package}")
    private String repositoryPackage;

    @Value("${generator.config.package.repository-impl-package}")
    private String repositoryImplPackage;

    @Value("${generator.config.package.req-package}")
    private String reqPackage;

    @Value("${generator.config.package.res-package}")
    private String resPackage;

    @Value("${generator.config.author}")
    private String author;

    @Value("${generator.config.table-name}")
    private String tableName;

    @Value("${generator.config.route-path}")
    private String routePath;

    @Value("${generator.config.entity-name}")
    private String entityName;

    @Value("${generator.config.search-field}")
    private String searchField;

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public String getDbUsername() {
        return dbUsername;
    }

    public void setDbUsername(String dbUsername) {
        this.dbUsername = dbUsername;
    }

    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getControllerPackage() {
        return controllerPackage;
    }

    public void setControllerPackage(String controllerPackage) {
        this.controllerPackage = controllerPackage;
    }

    public String getEntityPackage() {
        return entityPackage;
    }

    public void setEntityPackage(String entityPackage) {
        this.entityPackage = entityPackage;
    }

    public String getServicePackage() {
        return servicePackage;
    }

    public void setServicePackage(String servicePackage) {
        this.servicePackage = servicePackage;
    }

    public String getServiceImplPackage() {
        return serviceImplPackage;
    }

    public void setServiceImplPackage(String serviceImplPackage) {
        this.serviceImplPackage = serviceImplPackage;
    }

    public String getMapperPackage() {
        return mapperPackage;
    }

    public void setMapperPackage(String mapperPackage) {
        this.mapperPackage = mapperPackage;
    }

    public String getRepositoryPackage() {
        return repositoryPackage;
    }

    public void setRepositoryPackage(String repositoryPackage) {
        this.repositoryPackage = repositoryPackage;
    }

    public String getRepositoryImplPackage() {
        return repositoryImplPackage;
    }

    public void setRepositoryImplPackage(String repositoryImplPackage) {
        this.repositoryImplPackage = repositoryImplPackage;
    }

    public String getReqPackage() {
        return reqPackage;
    }

    public void setReqPackage(String reqPackage) {
        this.reqPackage = reqPackage;
    }

    public String getResPackage() {
        return resPackage;
    }

    public void setResPackage(String resPackage) {
        this.resPackage = resPackage;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getRoutePath() {
        return routePath;
    }

    public void setRoutePath(String routePath) {
        this.routePath = routePath;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getSearchField() {
        return searchField;
    }

    public void setSearchField(String searchField) {
        this.searchField = searchField;
    }
}
